import request from '@/utils/request'

/**
 * 登录模块
 */
export const login = data => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
/**
 *获取用户信息
 */
export const getInfo = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
/**
 *登出/退出模块
 */

export const logout = () => {
  return request({})
}
